﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="cur_list.aspx.cs" Inherits="SF.Ucenter.admin.users.cur_list" %>
<%@ Import Namespace="SF.Common" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,initial-scale=1.0,user-scalable=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <title>客户列表</title>
    <link href="../../scripts/artdialog/ui-dialog.css" rel="stylesheet" type="text/css" />
    <link href="../skin/default/style.css" rel="stylesheet" type="text/css" />
    <link href="../../css/pagination.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" charset="utf-8" src="../../scripts/jquery/jquery-1.11.2.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="../../scripts/jquery/Validform_v5.3.2_min.js"></script>
    <script type="text/javascript" charset="utf-8" src="../../scripts/artdialog/dialog-plus-min.js"></script>
    <script type="text/javascript" charset="utf-8" src="../js/laymain.js"></script>
    <script type="text/javascript" charset="utf-8" src="../js/common.js"></script>
    
</head>

<body class="mainbody">
    <form id="form1" runat="server">
        <!--导航栏-->
        <div class="location">
            <a href="javascript:history.back(-1);" class="back"><i></i><span>返回上一页</span></a>
            <a href="../First.aspx" class="home"><i></i><span>首页</span></a>
            <i class="arrow"></i>
            <span>客户列表</span>
        </div>
        <!--/导航栏-->

        <!--工具栏-->
        <div id="floatHead" class="toolbar-wrap">
            <div class="toolbar">
                <div class="box-wrap">
                    <div class="l-list">
                        <ul class="icon-list">
                            <li><a class="all" href="javascript:;" onclick="checkAll(this);"><i></i><span>全选</span></a></li>
                            <li><a class="move" target="_self" href="../customer/cur_alltop.aspx"><i></i><span>客户榜单</span></a></li> 
                            <li><a class="move" target="_self" href="../customer/cur_top.aspx"><i></i><span>消费榜单</span></a></li>                    
                        </ul>
                    </div>
                    <div class="r-list">
                        <asp:TextBox ID="txtKeywords" runat="server" CssClass="keyword" />
                        <asp:LinkButton ID="lbtnSearch" runat="server" CssClass="btn-search" OnClick="btnSearch_Click">查询</asp:LinkButton>
                    </div>
                </div>
            </div>
        </div>
        <!--/工具栏-->

        <!--列表-->
        <asp:Repeater ID="rptList" runat="server">
            <HeaderTemplate>
                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="ltable">
                    <tr>
                        <th width="8%">选择</th>
                        <th align="left" width="8%">用户头像</th>
                        <th align="left" width="14%">用户编号</th>
                        <th align="left" width="10%">微信昵称</th>
                        <th align="left" width="14%">注册时间</th>
                        <th align="left" width="14%">用户等级</th>
                        <th style="<%=dis%>" align="left" width="10%">工资</th>
                        <th width="20%">操作</th>
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td align="center">
                        <asp:CheckBox ID="chkId" CssClass="checkall" runat="server" Style="vertical-align: middle;" />
                        <asp:HiddenField ID="hidId" Value='<%#Eval("id")%>' runat="server" />
                    </td>
                    <td><img style="width:50px;height:50px;" alt="用户头像" src="<%# string.IsNullOrEmpty(Eval("photoUri").ToString())?"/images/imgs/0.jpg":Eval("photoUri") %>" /></td>
                    <td><%# Eval("userNum") %></td>
                    <td><%# Eval("nickName") %></td>
                    <td><%#string.Format("{0:g}",Eval("addTime"))%></td>
                    <td><%# Eval("groupName") %></td>
                    <td style="<%=dis%>" align="left"><%# getMoneyByNum(Eval("userNum").ToString()) %></td>
                    <td align="center">
                        <a href="cur_consume.aspx?action=<%#DTEnums.ActionEnum.View %>&id=<%#Eval("id")%>">查看消费</a>
                        <a style="<%# Eval("sellModel").ToString().Equals("1")?"dispaly:block;":"display:none;"%>" href="cur_realation.aspx?action=<%#DTEnums.ActionEnum.View %>&id=<%#Eval("id")%>">查看关系</a>
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                <%#rptList.Items.Count == 0 ? "<tr><td align=\"center\" colspan=\"8\">暂无记录</td></tr>" : ""%>
</table>
            </FooterTemplate>
        </asp:Repeater>
        <!--/列表-->

        <!--内容底部-->
        <div class="line20"></div>
        <div class="pagelist">
            <div class="l-btns">
                <span>显示</span><asp:TextBox ID="txtPageNum" runat="server" CssClass="pagenum" onkeydown="return checkNumber(event);" OnTextChanged="txtPageNum_TextChanged" AutoPostBack="True"></asp:TextBox><span>条/页</span>
            </div>
            <div id="PageContent" runat="server" class="default"></div>
        </div>
        <!--/内容底部-->
    </form>
</body>

</html>